﻿using System.Windows.Controls;
using System.Windows;
using System.Windows.Media;

namespace DevExpress.Windows.Controls {
	[TemplatePart(Name = ContentName, Type = typeof(ContentControl))]
    public class AgDataGridCell : ContentControl {
		const string ContentName = "ContentElement";
        public AgDataGridCell() {
        }


		Brush cachedForeground;
		public void HideContent() {
			cachedForeground = ContentControl.Foreground;
			ContentControl.Foreground = new SolidColorBrush(Colors.Transparent);
		}
		public void ShowContent() {
			ContentControl.Foreground = cachedForeground;
		}
		public virtual ContentControl ContentControl {
			get {
				return GetTemplateChild(ContentName) as ContentControl;
			}
		}
    }
}